package org.zht.dormpro.auth.service;

import org.zht.dormpro.pub.exception.DataBaseException;
import org.zht.dormpro.auth.model.SysPermission;

import java.util.List;

public interface ISysPermissionService {
    List<SysPermission> listMenu(String menuName);

    int addMenu(SysPermission menu) throws DataBaseException;

    SysPermission getSysPermission(Integer parentId);

    boolean deleteMenu(Integer menuId);

    boolean editMenu(SysPermission newMenu);

    List<SysPermission> getHasChildMenu();
}
